// 导入静态路由
import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state() {
    return {
      menuList: []
    }
  },
  mutations: {
    setMenu(state, menu) {
      // 将动态路由和静态路由组合起来
      state.menuList = [...constantRoutes, ...menu]
    }
  },
  actions: {
  },
  getters: {}
}
